import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { HydratedDocument } from 'mongoose';

export type PrivateChargePowerDataDocument = HydratedDocument<PrivateChargePowerData>;

@Schema()
export class PrivateChargePowerData {
  @Prop({
    type : 'number'
  })
  id: number;

  @Prop({
    type : Object
  })
  data : {
    [key:string] : {
      [key:string] : any
    }
  }
}

export const PrivateChargePowerDataSchema = SchemaFactory.createForClass(PrivateChargePowerData);
